package com.crane.oss.enums;

/**
 * 通用字典：是否体育老师
 * 
 * @author tyh
 *
 */
public enum CommonYesOrNoEnum {
	
	YES(1, "是"),

	NO(0, "否");

	private Integer type;

	private String remark;

	private CommonYesOrNoEnum(Integer type, String remark) {
		this.type = type;
		this.remark = remark;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public static String getRemark(Integer type) {
		for (CommonYesOrNoEnum commonEnum : CommonYesOrNoEnum.values()) {
			if (commonEnum.getType().equals(type)) {
				return commonEnum.getRemark();
			}
		}
		return "";
	}
}
